﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CWB.Common.Constant
{
    public enum Err
    {
        UserNameCannotBeEmpty = 1,
        PasswordCannotBeEmpty = 2,
        UserNamePasswordCannotBeEmpty = 3,
        CaptchaCodeCannotBeEmpty = 4,
        CaptchaIncorrect = 5,
        UserNameAndPasswordDoesnotMatch = 6,
        ConfirmPasswordCannotBeEmpth = 7,
        PasswordAndConfirmPasswordDoesnotMatch = 8,
        UserNameIsExisting = 9,
        TheBackOfficeUserIsNotExist = 10,
        OldPasswordCannotBeEmpty = 11,
        NewPassowrdCannotBeEmpath = 12,
        NewPasswordAndConfirmPasswordDoesnotMatch = 13,
        OldPasswordIsIncorrect = 14,

        ProductIdCannotBeEmpty = 100,
        ProductNameCannotBeEmpty = 101,
        UnitCannotBeEmpty = 102,
        UnitValueCannotBeEmpty = 103,
        FeeCannotBeEmpty = 104,
        ProductIdIsExisting = 105,
        ProductIsNotExisting = 106,

        AgentLoginIdIsExisting = 201,
        AgentLoginIdCannotBeEmpty = 202,
        AgentUsernameCannotBeEmpty = 203,
        AgentCreditlimitCannotBeEmpty = 204,
        AgentCreditlimitFormatWrong = 205,
        AgentInformationOmit = 206,
        AgentParentSNincorrect = 208,
        AgentCannotDelDueToDownline = 209,
        AgentPositionOverLevelLimit = 210,

        AskPositionNeedBeChoice = 302,
        PlaceOrderFailed = 303,
        ProductItemNotSupported = 304,
        AgentDoNotHaveAnyProdItem = 305,

        OrderDoNotHaveEnoughtUnit = 306,
        OrderDoNotHaveEnoughtSpaceForPlaceOrder = 307,
        OrderCannotHaveDifferentPosition = 308,
        OrderPriceCannotBeEmpty = 309,

        RequestOrderResultEmpty = 321,
        RequestOrderLostStarOrEndDate = 322,

        ChineseWordCannotBeNull = 1101,
        DescriptCannotBeNull = 1102,
        ExampleCannotBeNull = 1103,
        VoiceContentCannotBeNull = 1104,
        ChineseWordExisting = 1105,
        ConvertVoiceFailed = 1106,
        CategoryCannotBeNull = 1107,
        CategoryAlreayExist = 1108,
        SentenceCannotBeNull = 1109,
        SentenceAlreayExist = 1110,

        SaveOrCreateDataGoProblem = 9000,
        ReceiveParameterTypeIncorrect = 9001,
        DeleteDataFailed = 9005,
        UpdateDataFailed = 9006,
        ReturnCodeOutOfControl = 9007,
        SessionTimeOutOrLost = 9008,
        TheAccountIsNotUnderYourHierarchy = 9009,
        DataNotExistUpdateFailed = 9010,

        UnHandelCodeException = 9098,
        QueryDbGotSynctaxError = 9099
    }

    public enum Msg
    {
        CreateBackOfficeUserSuccess = 1,
        UpdateBackOfficeUserSuccess = 2,
        AreYouWantToDeleteTheRecord = 3,
        DeleteSuccess = 4,
        ThereAreNoDateFound = 5,
        CreateProduceSuccess = 6,
        CreateAgentSuccess = 7,
        UpdateProductSuccess = 8,
        UpdateAgentSuccess = 9,
        PlaceOrderSuccess = 10,
        CreateVoiceDataSuccess = 11,
        UpdateVoiceDataSuccess = 12,



        CreateDataSuccess = 9000,
        UpdateDateSuccess = 9001
    }
}
